import Vue from 'vue'
import Router from 'vue-router'
import recentSearch from '@/components/search/recentSearch'
import searchList from '@/components/search/searchList'
import articleDetail from '@/components/search/articleDetail'
import cnki from '@/components/search/cnki'
import previewPdf from '@/components/search/preview'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'recentSearch',
      component: recentSearch
    },{
      path: '/searchList',
      name: 'searchList',
      component: searchList
    },{
      path: '/articleDetail',
      name: 'articleDetail',
      component: articleDetail
    },{
      path: '/cnki',
      name: 'cnki',
      component: cnki
    },{
      path: '/previewPdf',
      name: 'previewPdf',
      component: previewPdf
    }
  ]
})
